<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>

    <style>
        body{
            background-color: black;
            padding: 10px;
        }
        div{
            height: 200px;
            width: 200px;
            background-color: purple;
            animation-name: move;
            animation-duration: 2s;
            animation-timing-function: linear;
            animation-iteration-count: 2;
            animation-delay: 1s;
            animation-direction: revert;
        }

        @keyframes move {
            0% {
                transform: translateX(0px);
            }
            100%{
                transform: translateX(200px);
            }
        }

    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>
